<template>
    <div>
        标题<input type="text" v-model="form.title">
        <button @click="add">添加</button>
    </div>
</template>

<script>
    export default {
        name:'news',
        data(){
            return{
                form:{}
            }
        },
        methods:{
            add(){
                this.$axios.post('http://localhost:5000/',this.form).then(res=>{

                })
            }
        }
    }
</script>

<style scoped>

</style>